import React,{useState,useEffect} from 'react'
import request from '../utils/request'
import "../api/index"
const TextComponent=()=> {
    const [list,setList]=useState([])
    useEffect(() => {
     request.get("/api/list").then((res:any)=>{
         console.log(res.data.list,"请求数据");
         console.log("变化了");
         
       })
     },[]) 
    useEffect(()=>{
      console.log("list变化了");
      
    },[list])
  useEffect(()=>{
    return ()=>{
      console.log("模拟校徽生命周期");
      
    }
  })
  
    return (
    <div>
      6868686868
    </div>
  )
}

export default TextComponent
